﻿using System;

namespace Sustainalytics.DataLayer.Exceptions
{
    public class PortfolioCompanyUniqueNameException : Exception
    {
        public string PortfolioCompanyName { get; private set; }

        public PortfolioCompanyUniqueNameException(string message, string portfolioCompanyName)
            : base(message)
        {
            PortfolioCompanyName = portfolioCompanyName;
        }

        public PortfolioCompanyUniqueNameException(string message, Exception innerException, string portfolioCompanyName)
            : base(message, innerException)
        {
            PortfolioCompanyName = portfolioCompanyName;
        }
    }
}
